{{$ver := 56}}

{{set . "title" "Home"}}
{{set . "ver" $ver}}

{{template "header.html" .}}

<div class="container">

        <!--shortcut-->
        {{template "application/nav.html" .}}


        {{if .user.Role | eq 0 }}
        	<div class="row">
        		<a href="/create_mc"><h2>创建商户</h2></a>	
        	</div>
        {{else if .user.Role | eq 3}} 
        	<!-- 管理员洁面 -->
        	{{template "application/admin.html"}}
	{{else if .user.Role | eq 1}}
		<!-- 商户界面 -->
		{{template "application/mc.html"}}
        {{end}}
</div>



<script src="/public/js/pc/main.js?ver={{$ver}}"></script>
<script src="/public/js/pc/mcadmin.js?ver={{$ver}}"></script>
<script src='public/js/sidebar.js?ver={{$ver}}' type="text/javascript"></script>

{{template "footer.html" .}}